package com.kinghood.productcenter;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 产品中心
 *
 * @author KingHood
 * @date 2024/1/01
 */
@ComponentScan(basePackages = {"com.kinghood.productcenter", "com.kinghood.redis", "com.kinghood.obs",
        "com.kinghood.infrastructure", "com.kinghood.sharding.model"})
@EnableFeignClients("com.kinghood.productcenter.common")
@SpringBootApplication
@MapperScan(basePackages = "com.kinghood.productcenter.dao")
@EnableDiscoveryClient
@EnableAsync
public class ProductCenterApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductCenterApplication.class, args);
    }

}
